import request from '@/utils/request'

export default {
  getRecordList(currentPage,pageSize,recordQuery) {
    return request({
      url: `/repair/list/${currentPage}/${pageSize}`,
      method: 'post',
      data: recordQuery
    })
  },
  getAddList(){
    return request({
      url: `/repair/getList`,
      method:'get',
    })
  },
  saveRecord(repairRecord) {
    return request({
      url: `/repair/saveOrUpdate`,
      method: 'post',
      data: repairRecord
    })
  },
  getById(id){
    return request({
      url: `/repair/getById/${id}`,
      method: 'get'
    })
  },
  remove(id){
    return request({
      url: `/repair/remove/${id}`,
      method: 'get'
    })
  },
  detail(id){
    return request({
      url: `/repair/getDetail/${id}`,
      method: "get"
    })
  }

}
